package com.huatai.user.vo;


import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @program: ht-system
 * @description: 部门实体类
 * @author: songxiude
 * @create: 2023-02-17 11:13
 **/
@Data
@ApiModel(value = "部门实体类Vo",description = "部门实体类Vo")
public class DepartmentVo implements Serializable {
	@ApiModelProperty("部门id")
	private Long id;

	@ApiModelProperty("部门名称")
	private String deptName;

	@ApiModelProperty("上级部门id")
	private Long parentId;

	@ApiModelProperty("排序")
	private Integer sort;

	@ApiModelProperty("部门负责人")
	private String leader;

	@ApiModelProperty("状态0正常1禁用")
	private Integer status;

	@ApiModelProperty("创建人id")
	private Long createUserid;

	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime createTime;

	@ApiModelProperty("更新人id")
	private Long updateUserid;

	@ApiModelProperty("更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime updateTime;

	@ApiModelProperty("备注信息")
	private String remark;

	@ApiModelProperty("子级部门")
	private List<DepartmentVo> children;

}
